package com.iss.yunpan.service;


import com.iss.yunpan.entity.FileContent;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;


public interface FileService {
    List<FileContent> getAllFile(String fileName);

    boolean checkFileContent(String fileName, Integer parentId);

    void insertFolder(String fileName, Integer parentId);

    void uploadFile(String fileName, InputStream input, String parentId) throws IOException;

    String getFile(String  fileAbsolute);

    void renameFile(String fileName, String fileAbsolute,Integer id);

    void checkFileName(Integer id, String newFileName, String newFileAbsolute, String fileAbsolute) throws IOException;

    void deleteFile(String fileName);

    List<FileContent> getAllFile1(String fileName);

    void restoreFile(String fileName);

    void delete(String fileName);

    byte[] download(String fileAbsolute);

    String preview(String fileId);

    // List<FileContent> getAllFile(String id, String parentId);
}
